home *** CD-ROM | disk | FTP | other *** search
/ BCI NET / BCI NET Dec 94.iso / archives / programming / blitzbasic / blitz-list200994.lha / blitz-list / text0205.txt < prev    next >
Encoding:
Text File  |  1994-09-20  |  807 b   |  25 lines

  1. The best way to get the hang of Copperlists with Blitz (I find) is to
  2. write a little Copper disassembler. Then setup the display as necessary
  3. and view the Copper List with it
  4.  
  5. To do this scan through the memory adresses from CopLoc to CopLoc +
  6. CopLen step 4, decode the pairs of words at these addresses.
  7.  
  8. For adr.l=CopLoc to CopLoc+CopLen Step 4
  9.  word1.w=peek.w(adr)
  10.  word2.w=peek.w(adr+2)
  11.  ...
  12. Next
  13.  
  14. The lowest bits tell you the type of Copper command,a nd the other bits
  15. give the data and adresses. See the Blitz manual appendix, and interpret
  16. the results as you go. Then you can make up a table of useful data
  17. adresses for your particular Coper list set-up,a nd poke new data e.g.
  18. colours into these values.
  19.  
  20. If enough people want me to, ill post my own Copper disassembler here.
  21.  
  22.         Mike Cooper
  23.  
  24.  
  25.